<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>我的订单</title>
  <link rel="stylesheet" href="../css/ordered.css">
</head>
<body>
<h1>我的订单</h1>

  <div class="user-info">
    <p>订单号：${ordered.id}</p>
    <p>姓名：${ordered.userName}</p>
    <p>电话：${ordered.phone}</p>
    <p>收货地址：${ordered.address}</p>
    <p>下单日期：${ordered.date}</p>
  </div>



      <table>
        <thead>
        <tr>
          <th>商品图片</th>
          <th>商品名称</th>
          <th>单价</th>
          <th>数量</th>
        </tr>
        </thead>
<c:forEach items="${list}" var="link">
        <tbody>
        <!-- 在这里添加历史订单信息 -->
        <tr>
          <td><img src="${link.bookImage}" alt="商品图片"></td>
          <td>${link.bookName}</td>
          <td>${link.bookPrice}</td>
          <td>${link.bookNumber}</td>
        </tr>
        <!-- 重复上面的<tr>标签，添加更多的历史订单信息 -->
        </tbody>
</c:forEach>
      </table>


</body>
</html>

